import Mock from 'mockjs';

const users = {
    "admin-token": {
        "roles": "admin",
        "introduction": 'I am a super administrator',
        "imageUrl": 'https://tse1-mm.cn.bing.net/th/id/R-C.b120e96a3d82db8f7b93a25fff7d5221?rik=a0YUiTTfx7em9Q&riu=http%3a%2f%2fimg2.woyaogexing.com%2f2017%2f08%2f07%2fa2ccd9d49049bcbe!400x400_big.jpg&ehk=lIuLDpSoFYSHM1bnxgDoSnrZfmTrE9xd%2fnqfimMVetQ%3d&risl=&pid=ImgRaw',
        "name": '疾风亦有归途'
    },
    "editor-token": {
        "roles": "editor",
        "introduction": 'I am an editor',
        "imageUrl": 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
        "name": '路人甲'
    }
}

let user_get = {
    info: Mock.mock({
        "data": users['admin-token'],
        "err": 0
    }),
}

/* let user_get = {
    info: Mock.mock({
        "data": {
            "roles": "['admin']",
            "introduction": 'I am a super administrator',
            "avatar": 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
            "name": '疾风亦有归途'
        },
        "statusCode": 200
    }),
} */


export default user_get;